<script>
    $("div[name='up-connect']").mouseover(function () {
        var up_content = $(this).html();
        var content_list = up_content.split('##');
        str_html = '';
        for (i = 0; i < content_list.length; i++) {
            str_html += "<p>" + content_list[i] + "</p>";
        }
        $(this).popover({
            trigger: "hover",
            placement: "right",
            html: true,
            content: str_html,
        });
        $(this).popover('show');
    });

    //搜索角色
    $("#search-key").bind('change',function () {
        var key = $(this).val();
        if (key != "" ) {
            var url = "/log/searchlgu/" + key + "/";

        }else{
            var url = "/log/user/";
        }
        $("#search-a").attr("href", url);
    });

</script>